package com.doit.day02;

import java.util.HashSet;

public class Person {
    private String name ;
    private String gender;

    public Person(String xx, String oo, HashSet<String> set) {
        this.name = xx;
        this.gender = oo;
        set.add(xx);
        set.add(oo);
        System.out.println("set的长度是："+set.size());
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
